#ifndef __M_MESSAGE_H__
#define __M_MESSAGE_H__

#include "level.hpp"
#include "util.hpp"
#include <thread>

namespace ad_log
{
    class LogMessage
    {
    public:
        size_t curTime_;
        size_t lineNum_;
        std::thread::id threadId_;
        string fileName_;
        LogLevel::level logLevel_;
        string mainMsg_;
        string loggerName_;        
        

        LogMessage(size_t lineNum, const string& fileName, LogLevel::level logLevel, const string& mainMsg, const string& loggerName)
        : curTime_(util::date::currentTime()), lineNum_(lineNum), fileName_(fileName), logLevel_(logLevel),
        mainMsg_(mainMsg), loggerName_(loggerName)
        {}
    };
}


#endif